<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <link rel="stylesheet" href="/bootstrap/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="/self/css/login.css"/>
    <script src="/jquery/jquery-3.3.1.js"></script>
    <script src="/bootstrap/js/bootstrap.min.js"></script>
    <title>登录</title>
</head>
<body>
<div class="container">
    <h1 class="text-center">HelloWord登录</h1>
    <div class="form-block">
        <c:if test="${!empty msg}">
            <div class="alert alert-danger col-md-6 col-md-offset-3">
                <a class="close" href="#" data-dismiss="alert">&times;</a>
                <strong>错误！</strong>${msg}
            </div>
        </c:if>
        <form method="post" action="/hello/login" role="form" class="col-md-2 col-md-offset-5 form-horizontal">
            <div class="form-group">
                <div class="has-feedback">
                    <input class="form-control" type="text" placeholder="用户名" name="username" id="username">
                    <span class="glyphicon glyphicon-user form-control-feedback"></span>
                </div>
            </div>
            <div class="form-group">
                <div class="has-feedback">
                    <input class="form-control" type="password" placeholder="密码" name="password" id="password">
                    <span class="glyphicon glyphicon-lock form-control-feedback"></span>
                </div>
            </div>
            <div class="form-group">
                <div>
                    <button type="submit" class="btn btn-primary btn-block">登录</button>
                </div>

            </div>
        </form>
    </div>
</div>
</body>
</html>
